
#include <iostream>
#include <time.h>
#include <chrono>
#include <iomanip>
#include"List.h"
#include<fstream>
using namespace std; 


void read_from_file(string filename, List<int> &list1, List<int> &list2)
{
	int input;
	ifstream fin;
	fin.open(filename);

	while(!fin.eof())
	{
		fin >> input;
		int list_chooser = input%2;
		if (list_chooser == 1)
		{
			if (list1.search(input) == nullptr)
				list1.add_at_head(input);
		}
		else
		{
			if (list2.search(input) == nullptr)
				list2.add_at_head(input);
		}
	}

	fin.close();

}

int main()
{
	clock_t tStart = clock();
	Node<int> n1;
	List<int> l1;
	List<int> l2;
	l1.add_at_head(10);
	l1.add_at_head(7);
	l1.add_at_head(4);
	l1.add_at_head(7);


	cout << "Tiden: " << (double)(clock() - tStart)/CLOCKS_PER_SEC << endl;
	
	system("PAUSE");
	return 0;
}